home *** CD-ROM | disk | FTP | other *** search
/ Digitalfoto 118 / Digitalfoto 118.iso / mac / programas / 00 / start.swf / scripts / frame_27 / DoAction.as
Text File  |  2009-11-16  |  1KB  |  55 lines

  1. function decodeUnixPath(s)
  2. {
  3.    originale = new Array("\\");
  4.    zeichen = "/";
  5.    x = 0;
  6.    while(x < originale.length)
  7.    {
  8.       while(s.indexOf(originale[x]) != -1)
  9.       {
  10.          pos = s.indexOf(originale[x]);
  11.          s = s.substring(0,pos) + zeichen.charAt(x) + s.substring(pos + originale[x].length,s.length);
  12.       }
  13.       x++;
  14.    }
  15.    return s;
  16. }
  17. if(client_os == "Windows")
  18. {
  19.    mdm.Forms.SplashForm.callFunction("output","Decoding..","");
  20. }
  21. if(useFSP_path == undefined)
  22. {
  23.    gotoAndPlay(5);
  24. }
  25. else if(useFSP_path == "true")
  26. {
  27.    if(client_os == "Windows")
  28.    {
  29.       fsp_path = appdir;
  30.    }
  31.    else if(appdir_osx == undefined)
  32.    {
  33.       gotoAndPlay(5);
  34.    }
  35.    else if(appdir_osx.indexOf("undefined/") == -1)
  36.    {
  37.       if(appdir_osx.indexOf("\\") == -1)
  38.       {
  39.          fsp_path = appdir_osx;
  40.       }
  41.       else
  42.       {
  43.          fsp_path = decodeUnixPath(appdir_osx);
  44.       }
  45.    }
  46.    else
  47.    {
  48.       gotoAndPlay(3);
  49.    }
  50. }
  51. else
  52. {
  53.    fsp_path = "";
  54. }
  55.